"""
战略规划师
"""
from langgraph.prebuilt import create_react_agent

from core.llm import llm
from core.agents.plan.prompts import plan_prompt


planner = create_react_agent(
    name="Planner",
    role="Strategic Planner",
    description="Develops strategic plans and roadmaps based on delegated sub-tasks.",
    prompt=plan_prompt,
    model=llm,
    tools=[],
    debug=True,
)


if __name__ == '__main__':
    res = planner.invoke({"messages": "what's (3 + 5) x 12?"})
    print(res['messages'][-1].content)